package cn.chinaflame.pagodas.entity;

import java.math.BigDecimal;
import java.util.Objects;
import javax.persistence.*;
/**
 * @author created by lbq
 * @date 2018年1月4日 下午2:31:09
 **/
@Entity
@Table(name = "pa_orderitem", schema = "pagoda", catalog = "")
public class PaOrderitem {
    private String id;
    private String memberId;
    private String orderId;
    private String memberName;
    private String areaId;
    private String locationNo;
    private String positionId;
    private String productId;
    private BigDecimal money;
    private Integer number;
    private Integer term;
    private String startTime;
    private String endTime;
    private String beWishedName;
    private String beWishedSex;
    private String beWishedBirthday;
    private String beWishedMobile;
    private String beWishedAddress;
    private String beWishedMemo;
    private String praying;
    private String apiStatus;
    private String createtime;
    private String updatetime;

    @Basic
    @Column(name = "member_name", nullable = true, length = 20)
    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    @Basic
    @Column(name = "area_id", nullable = true, length = 20)
    public String getAreaId() {
        return areaId;
    }

    public void setAreaId(String areaId) {
        this.areaId = areaId;
    }

    @Basic
    @Column(name = "term", nullable = true)
    public Integer getTerm() {
        return term;
    }

    public void setTerm(Integer term) {
        this.term = term;
    }

    @Basic
    @Column(name = "position_id", nullable = true, length = 20)
    public String getPositionId() {
        return positionId;
    }

    public void setPositionId(String positionId) {
        this.positionId = positionId;
    }

    @Column(name = "location_no", nullable = true, length = 50)
    public String getLocationNo() {
        return locationNo;
    }

    public void setLocationNo(String locationNo) {
        this.locationNo = locationNo;
    }

    @Id
    @Column(name = "id", nullable = false, length = 20)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "number", nullable = true)
    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    @Basic
    @Column(name = "member_id", nullable = true, length = 20)
    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    @Basic
    @Column(name = "order_id", nullable = true, length = 20)
    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    @Basic
    @Column(name = "product_id", nullable = true, length = 20)
    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    @Basic
    @Column(name = "money", nullable = true, precision = 0)
    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    @Basic
    @Column(name = "start_time", nullable = true)
    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    @Basic
    @Column(name = "end_time", nullable = true)
    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    @Basic
    @Column(name = "be_wished_name", nullable = true, length = 20)
    public String getBeWishedName() {
        return beWishedName;
    }

    public void setBeWishedName(String beWishedName) {
        this.beWishedName = beWishedName;
    }

    @Basic
    @Column(name = "be_wished_sex", nullable = true, length = 1)
    public String getBeWishedSex() {
        return beWishedSex;
    }

    public void setBeWishedSex(String beWishedSex) {
        this.beWishedSex = beWishedSex;
    }

    @Basic
    @Column(name = "be_wished_birthday", nullable = true, length = 20)
    public String getBeWishedBirthday() {
        return beWishedBirthday;
    }

    public void setBeWishedBirthday(String beWishedBirthday) {
        this.beWishedBirthday = beWishedBirthday;
    }

    @Basic
    @Column(name = "be_wished_mobile", nullable = true, length = 15)
    public String getBeWishedMobile() {
        return beWishedMobile;
    }

    public void setBeWishedMobile(String beWishedMobile) {
        this.beWishedMobile = beWishedMobile;
    }

    @Basic
    @Column(name = "be_wished_address", nullable = true, length = 50)
    public String getBeWishedAddress() {
        return beWishedAddress;
    }

    public void setBeWishedAddress(String beWishedAddress) {
        this.beWishedAddress = beWishedAddress;
    }

    @Basic
    @Column(name = "createtime", nullable = true)
    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    @Basic
    @Column(name = "be_wished_memo", nullable = true, length = 200)
    public String getBeWishedMemo() {
        return beWishedMemo;
    }

    public void setBeWishedMemo(String beWishedMemo) {
        this.beWishedMemo = beWishedMemo;
    }

    @Basic
    @Column(name = "praying", nullable = true, length = 200)
    public String getPraying() {
        return praying;
    }

    public void setPraying(String praying) {
        this.praying = praying;
    }

    @Basic
    @Column(name = "api_status", nullable = true, length = 2)
    public String getApiStatus() {
        return apiStatus;
    }

    public void setApiStatus(String apiStatus) {
        this.apiStatus = apiStatus;
    }

    @Basic
    @Column(name = "updatetime", nullable = true)
    public String getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(String updatetime) {
        this.updatetime = updatetime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PaOrderitem that = (PaOrderitem) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(memberId, that.memberId) &&
                Objects.equals(productId, that.productId) &&
                Objects.equals(money, that.money) &&
                Objects.equals(startTime, that.startTime) &&
                Objects.equals(endTime, that.endTime) &&
                Objects.equals(beWishedName, that.beWishedName) &&
                Objects.equals(beWishedSex, that.beWishedSex) &&
                Objects.equals(beWishedBirthday, that.beWishedBirthday) &&
                Objects.equals(beWishedMobile, that.beWishedMobile) &&
                Objects.equals(beWishedAddress, that.beWishedAddress) &&
                Objects.equals(beWishedMemo, that.beWishedMemo) &&
                Objects.equals(createtime, that.createtime) &&
                Objects.equals(updatetime, that.updatetime);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, memberId, productId, money, startTime, endTime, beWishedName, beWishedSex, beWishedBirthday, beWishedMobile, beWishedAddress, beWishedMemo, createtime, updatetime);
    }
}
